package org.jeecg.modules.quartz.job;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.TypeReference;
import com.baomidou.dynamic.datasource.annotation.DS;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.board.service.LineBoardService;
import org.jeecg.client.BizResponse;
import org.jeecg.client.SendUtils;
import org.jeecg.common.util.DateUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Slf4j
public class StatisticiansJob implements Job {

    @Setter
    private String parameter;

    @Resource
    private LineBoardService lineBoardService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //统计前一天的设备状态并存储
        log.info( String.format("welcome %s! 看板定时任务1 StatisticiansJob !   时间:" + DateUtils.now(), this.parameter));
    }
}
